package com.woniuxy.qiantai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.qiantai.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.qiantai.vo.OrderItemVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 09:45:58
 */
public interface CommentService extends IService<Comment> {

    Page<Comment> selectCommentByshopId(Integer currentPage, Integer pageSize,Integer shopId);

    List<Comment> queryComments(Integer shopId);

    List<OrderItemVo> selectCommentByOrderId(Integer orderId);

    int insertCommentAndRate(String comment, Double rate,Integer orderId,Integer shopId,Integer userId);
}
